package com.t249.bdqn.renting.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;


@Data
@Component
@TableName(value = "ret_address")
public class RetAddress implements Serializable {

    //id
    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableField("id")
    private Integer id;

    //城市名称
    @TableField("ch_cityName")
    private String cityName;

    //经度
    @TableField("address_longitude")
    private String addressLongitude;

    //维度
    @TableField("address_latitude")
    private String addressLatitude;
}
